//
//  Flipper_R_Obstacle.h
//  StarBugs
//
//  Created by ?? ? on 4/16/12.
//  Copyright 2012 antisword@playorca.com. All rights reserved.
//

#ifndef __Flipper_R_Obstacle_h__
#define __Flipper_R_Obstacle_h__

#include "Object/ObjectSprite.h"

class Flipper_R_Obstacle : public ObjectSprite
{
private:
    b2RevoluteJoint* jt;
    b2Body* head;
    b2Body* stick;
    //    CCSprite* stickSprite;
    
public:
    Flipper_R_Obstacle();
    
    virtual void setBodyAngle(bool isInv);
    virtual void setBody(b2World* _worlde);
    virtual void removeBody(b2World *_world);
    virtual void setMove(CCPoint pt); 
    
    void onFlipper();
    void offFlipper();
};

#endif//__Flipper_R_Obstacle_h__